//
//  ZyInitView.swift
//  swift各类控件集锦
//
//  Created by iosdev1 on 2017/4/24.
//  Copyright © 2017年 zyy. All rights reserved.
//

import UIKit

class ZyInitView: UIView {

    override init(frame: CGRect) {
        super.init(frame: frame)
        print("初始化成功")
        self.initView()
    }
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    
    func initView() -> Void {
        let lbl = zyUIlblInitWith(title: "初始化", font: 14, color: UIColor.yellow, bgColor: UIColor.orange)
        self.addSubview(lbl)
        lbl.frame = CGRect(x:0, y:0, width:self.bounds.size.width, height:self.bounds.size.height)
    }

}
